<?php
/**
 * StaticUri.php
 *
 * View helper class that returns a uri for static files like css, js and images.
 *
 * @author		b.wenneker <b.wenneker@gmail.com>, 2010
 */
class View_Helper_StaticUri extends Zend_View_Helper_Abstract{
	
	/**
	 * staticUri() - View helper method that returns a uri for static files like
	 * css, js and images.
	 *
	 * @author b.wenneker <b.wenneker@gmail.com>, 2010
	 * @param string $filepath
	 */
	public function staticUri($filepath){
		$baseUrl = $this->view->getHelper('BaseUrl')->baseUrl();
		return $baseUrl . $filepath;
	}
}